<form id="edit-member-form" method="post"
      action="make_order_process.php?<? echo $data['url_parameter'] ?>"
      enctype="multipart/form-data" class="layui-form">




    <div class="layui-form-item">
        <label class="layui-form-label">套餐</label>
        <div class="layui-input-block">
            <select name="ai_product" lay-search="" >
                <? for($i=0;$i<count($product_set_list);$i++){ ?>
                    <option value="<? echo $product_set_list[$i]['nid'] ?>"><? echo $product_set_list[$i]['nid'] ?> : <? echo $product_set_list[$i]['title'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>







    <div class="layui-form-item">
        <label class="layui-form-label">学生</label>
        <div class="layui-input-block">
            <table class="layui-table">
            <colgroup>
                <col width="150">
                <col >
                <col >
                <col >
                <col >

            </colgroup>
            <thead>
            <tr>
                <th>序号</th>
                <th>学生姓名</th>
                <th>学校</th>
                <th>年级</th>
                <th>班别</th>
            </tr>
            </thead>
            <tbody>

            <?php

            if (count($student) == 0) {
                echo "<tr><td colspan='6'>暂无数据</td></tr>";
            }

            ?>


            <?php
            for ($i = 0; $i < count($student); $i++) {


                ?>

                <tr id="item<?echo $student[$i]['nid']?>" >
                    <td>
                        <input type="checkbox" name="nid[]" lay-skin="primary" lay-filter="item_checkbox"  value="<? echo $student[$i]['nid'] ?>">
                    </td>
                    <td><? echo $student[$i]['name']?></td>
                    <td><? echo $student[$i]['school']?></td>
                    <td><? echo $student[$i]['grade'];?></td>
                    <td><? echo $student[$i]['class_']?></td>

                </tr>
                <?php

            }
            ?>
            </tbody>
        </table>

    </div>
    </div>





    <div class="function">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit   type="submit">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>



</form>




















